const cookies = require('./cookies.json')
const service = require('./service')

async function login () {
  for (let i = 0; i < cookies.length; i++) {
    const res = await service.loginAndCheck(cookies[i])
    const data = service.findData(res.data)
    console.log(`${data} 两`)
  }
}

login()

module.exports = {
  login
}
